module AutoRest

# Labels for buttons and links (mostly for CRUD actions)
  class Labels
    @@defaults= {
      
      :index_title        => "<h3>Index</h3>",
      :edit_title         => "<h3>Edit</h3>",
      :new_title          => "<h3>New</h3>",
      :show_title         => "<h3>Show</h3>",
      :search_title       => "<h3>Search</h3>",
      
      :destroy_confirm    => "Are you sure?",
      :empty_table        => "0 Records",

      :label              => 'Name',
      
      :new                => 'Add',
      :create             => 'Create',
      
      :edit               => 'Edit',
      :update             => 'Update',
      
      :back               => 'Index',
      :show               => 'Show',
      :destroy            => 'Destroy',
      
      :nil_value_in_field => '-',

      :create_disabled    => "Create has been disabled.",
      :update_disabled    => "Update has been disabled.",
      :show_disabled      => "Show has been disabled.",
      :destroy_disabled   => "Destroy has been disabled",

      :create_successfull => "Successfully created.",
      :update_successfull => "Successfully updated.",

      :lock_version_error_on_field => "Field has been changed.",
      :lock_version_error => "<p><strong>Warning!</strong>Another user edited the record before your changes where commited." \
                             "If you wish, you can edit and send the changes again." \
                             "You tried to send this data:</p>",

      :breadcrumbs_missing_resource => " &raquo; ",
      :breadcrumbs_newlabel=> 'New',
      :breadcrumbs_separator=> ' &raquo; ',
      
      :pagination_prev    => '&laquo; Prev',
      :pagination_next    => 'Next &raquo;',
      
      :search             => "Search",
      :ask_for_search_terms => "Please fill the query terms",
      :search_results_summary => "%d records found searching for %s.<br/>"
    }
    cattr_accessor :defaults
  end

 end